package com.android.client;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;

public class com_search_students extends Activity{
	private EditText CSS_Name,CSS_Department;
	private Button CSS_Btn;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.com_search_students);
		CSS_Name=(EditText)findViewById(R.id.CSS_Name);
		CSS_Department=(EditText)findViewById(R.id.CSS_Department);
		CSS_Btn=(Button)findViewById(R.id.CSS_Btn);
		CSS_Btn.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i=new Intent();
				Bundle b=new Bundle();
				b.putString("Name", CSS_Name.getText().toString());
				b.putString("Department", CSS_Department.getText().toString());
				i.putExtras(b);
				i.setClass(com_search_students.this, search2.class);
				startActivity(i);
			}
			
		});

	}

}
